package com.ruoyi.order.mapper;

import com.ruoyi.order.domain.OrderIgnored;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderIgnoredMapper {
    @Insert("insert into order_ignored (user_id, order_id) values (#{userId}, #{orderId})")
    int insertOrderIgnored(OrderIgnored orderIgnored);

    List<OrderIgnored> selectOrderIgnoredByUserId(@Param("userId") String userId);
}
